#ifndef __SERVER_H
#define __SERVER_H

#include <stdint.h>
#include <stdbool.h>

#define RECV_BUF_SIZE 1048576

typedef int (*msg_handle)(const void *in, void * out, uint32_t out_buf_size);

int socket_server_start(char *sockfile, msg_handle register_msg_handle);

void socket_server_stop();

#endif // __SERVER_H
